package com.evil.common.oss.enums;

import com.evil.common.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author liyang
 * @date 2024-05-18 14:28
 */
@Getter
@AllArgsConstructor
public enum OssRCodeEnum implements BaseEnum {

    /**
     * code - message
     */
    // region IO操作 oss  [5100-5199]
    ERROR_UPLOAD_TYPE(5102, "文件上传类型有误"),
    ERROR_FILE(5103, "文件操作异常"),
    ERROR_FILE_NOT_FOUND(5104, "找不到文件"),
    ERROR_FILE_RELATION_NOT_FOUND(5105, "文件关系未找到"),
    ERROR_FEIGN(5106, "微服务调用异常"),
    EXPORT_ERROR(5107, "导出文件失败"),
    ERROR_FOLDER_NOT_FOUND(5109, "找不到指定文件夹"),
    IMPORT_ERROR(5110, "导入失败"),
    IMPORT_TEMPLATE_ERROR(5111, "导入模板错误，请确保为最新导入模板"),
    UPLOAD_ERROR(5112, "上传文件失败"),
    OSS_ERROR(5113, "上传失败，配置OSS服务器配置"),
    FILE_SIGNATURE_ERROR(5114, "签名错误"),
    PRINT_ERROR(5115, "打印文件失败"),
    FILE_OVERDUE(5116, "文件已过期"),
    FILE_DOWNLOAD_ERROR(5117, "文件获取失败"),
    // endregion
    ;

    private final int code;
    private final String message;
}
